//
//  SWFavoriteEventFetchReq.swift
//  ChildStory
//
//  Created by linhan on 2016/12/23.
//  Copyright © 2016年 Aiya. All rights reserved.
//

import Foundation

class SWFavoriteEventsFetchReq: SWBaseRequest
{
    override init()
    {
        super.init()
        api = SWRequestAPI.FavoriteEventsFetch
    }
    
    override func JSONToModel(_ json:JSON, JSONString:String, JSONData:Data) -> AnyObject?
    {
        return Mapper<SWFavoriteEventsFetchRsp>().map(JSONString: JSONString)
    }
}

class SWFavoriteEventsFetchRsp: NSObject,Mappable
{
    var events:[SWEventRsp]?
    required init?(map: Map) { }
    
    func mapping(map: Map) {
        events  <- map["BaseModle"]
    }
}
